;(function (window, undefined) {
    function init(el){
        let els = document.querySelectorAll(el)
        let arr = []
        arr.push.apply(this, els); 
    }
    const jQuery = function (el){
        return new init(el)
    }
    jQuery.extend = function(object){
        for (let key in object){
            init.prototype[key] = object[key]
        }
    }
    init.prototype = {
        css(cssAttr, cssVal){
            for(let i = 0; i<this.length; i++){
                this[i].style[cssAttr] = cssVal
            }
            return this
        },
        ajax(options) { },
        attr(options) { },
        addClass(options) { },
    }
    window.jQuery = window.$ = jQuery
})(window)